package com.ydj.app.entity.query;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ydj.framework.mysql.BaseQuery;
import com.ydj.framework.mysql.MysqlSort;
import com.ydj.app.entity.CmsAccount;

import java.util.List;


public class CmsAccountQuery extends BaseQuery<CmsAccount> {
    public CmsAccountQuery(IService<CmsAccount> service) {
        super(service);
    }

    public CmsAccountQuery id(Long id) {
        eq(CmsAccount::getId, id);
        return this;
    }

    public CmsAccountQuery ids(List<Long> value) {
        in(CmsAccount::getId, value);
        return this;
    }

    public CmsAccountQuery nameLike(String value) {
        like(CmsAccount::getName, value);
        return this;
    }

    public CmsAccountQuery username(String value) {
        eq(CmsAccount::getUsername, value);
        return this;
    }

    public CmsAccountQuery createTimeBetween(Long start, Long end) {
        between(CmsAccount::getCreateTime, start, end);
        return this;
    }

    public CmsAccountQuery password(String value) {
        eq(CmsAccount::getPassword, value);
        return this;
    }

    public CmsAccountQuery orderByCreateTime(MysqlSort sort) {
        orderBy(CmsAccount::getCreateTime, sort);
        return this;
    }
}